let mediaQueryDetectorElem;

export function initialize() {
	// Media query detector stuff.
	mediaQueryDetectorElem = document.getElementById(
		'mediasoup-demo-app-media-query-detector'
	);

	return Promise.resolve();
}

export function isDesktop() {
	return Boolean(mediaQueryDetectorElem.offsetParent);
}

export function isMobile() {
	return !mediaQueryDetectorElem.offsetParent;
}

export const baseUrl = window.location.hostname === 'localhost' ? 'https://118.25.132.79' : 'https://118.25.132.79';
